// ---------base------------
//移动端屏幕自适应
let designSize = 750; // 设计图尺寸
let html = document.documentElement;
let wW = html.clientWidth; // 窗口宽度

if (wW <= designSize) {
  let rem = wW * 100 / designSize;
  document.documentElement.style.fontSize = rem + 'px';
}
window.οnresize = function () // 绑定到窗口的这个事件中
{
  let designSize = 750; // 设计图尺寸
  let html = document.documentElement;
  let wW = html.clientWidth; // 窗口宽度
  if (wW <= designSize) {
    let rem = wW * 100 / designSize;
    document.documentElement.style.fontSize = rem + 'px';
  }
};